// API配置文件
export const API_CONFIG = {
  // 后端服务地址
  BASE_URL: 'http://localhost:5000/api',
  
  // API端点
  ENDPOINTS: {
    CONVERT: '/convert',
    DOWNLOAD: '/download'
  }
}

// 完整的API URL
export const getApiUrl = (endpoint: string, params?: string): string => {
  let url = `${API_CONFIG.BASE_URL}${endpoint}`
  if (params) {
    url = `${url}/${params}`
  }
  return url
}